﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace CRUDMvcWebApi.Models
{
    interface ICRUDOperations<T>
    {
        public IEnumerable<T> GetAll();
        public T Get(int id);
        public IEnumerable<T> GetBySearchString(string category);
        public HttpResponseMessage Post(T item);
        public void Put(int id, T item);
        public void Delete(int id);

    }
}
